import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== declare
// ===================================================================== Lazy
// ===================================================================== component
class Index extends React.Component{
	state = {
		// 提交表单列表
		formData : [
			{ label: '开始条码',				name: 'start_code', 		full:true, 		required:true},
			{ label: '结束条码',				name: 'end_code', 			full:true, 		required:true},
			{ label: '温度',				name: 'temperature', 		full:true, 		required:true,		type: 'number',		max: 10},
		]
	}
	
	open = param => {
		this.modal.open({ formRef: this.formRef })
		this.submit = param
	}
	
	render(){
		const { api } = this.props
		return FormModal.call(this,{ title: '入库', labelWidth:'s7', width:600, clear:true, api})
	}
}

export default Index